#include "string.h"
#include <iostream>


int main(){
	string s, t;
	cin >> s >> t;
	int index = Match2(s, t);

	if (index == -1) printf("No\n");
	else printf("Yes Pos: %d", index);
}